import 'package:flutter/material.dart';
import 'package:test1/pages/utils/LoadingDialog.dart';
import 'package:test1/View/MyRowText.dart';

class Widget_CustomDialog_Page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("自定义dialog"),
        ),
        body: ListView(
          children: <Widget>[
            MyRowText("弹出自定义dialog", () =>
                showDialog(context: context,
                    builder: (BuildContext context) =>
                        LoadingDialog(message: "加载中",)
                )
            ),
          ],
        ),
      ),
    );
  }
}

//            Navigator.pop(context) 关闭
